<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="utf-8"/>
        <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
        <meta name="viewport" content="width=device-width, initial-scale=1"/>
        <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
        <title><?php echo R('Admin/Other/site',array('id'=>'1'));?> <?php echo ($rtitle); ?> <?php echo ($data["goodsname"]); ?></title>
    <meta name="keywords" content="<?php echo R('Admin/Other/site',array('id'=>'2'));?>"/>
    <meta name="description" content="<?php echo R('Admin/Other/site',array('id'=>'3'));?>"/>

        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
        <!-- Bootstrap -->
        <link href="/Public/style/css/bootstrap.min.css" rel="stylesheet"/>
        <link href="/Public/style/css/common.css" rel="stylesheet" />
        <link href="/Public/style/css/page.css" rel="stylesheet" />
        <script src="/Public/style/js/jquery.min.js">
        </script>
        <script src="/Public/style/js/masonry.pkgd.min.js">
        </script>

        <script>
            $(function() {
    var $container = $('#masonry');
    $container.imagesLoaded(function() {
        $container.masonry({
                itemSelector: '.box',
                gutter: 20,
                isAnimated: true,
            });
     });
});
        </script>
        <!--
            <script src="/Public/style/js/bootstrap.min.js">
            </script>
        -->
        <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
            <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js">
            </script>
            <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js">
            </script>
        <![endif]-->
      <!--   <script type="text/javascript">
            $(function(){
            var w = $('.getImgWidth').width();
            $('.thisimg').each(function() {
            $(this).height(w);
            });
            });
        </script> -->
    </head>
    <body>
         <div class="top bg-orange">
  <div class="container">
      <div class="row">
        <div class="col-md-4 text-center">
         <a href="<?php echo U('Index/index');?>"><img src=" <?php echo R('Admin/Other/site',array('id'=>'5'));?> "></a>
         </div>
        <div class="col-md-8">
          <form class="search" action="<?php echo U('index/search',array('p'=>$p));?>" method="get">
            <div class="col-md-7 col-sm-7">
              <input class="form-control" name="sr" <?php if($sr): ?>value="<?php echo ($sr); ?>"<?php else: ?>placeholder="女装，箱包，手表，iphone，折扣"<?php endif; ?> ></input>
            </div>
            <div class="col-md-2 col-sm-2">
              <select class="form-control" name="type">
                <option value="1" <?php if($ty == 1): ?>selected="selected"<?php endif; ?>>优惠券</option>
                <option value="2" <?php if($ty == 2): ?>selected="selected"<?php endif; ?>>淘商品</option>
              </select>
            </div>
            <div class="col-md-3 col-sm-3">
              <button class="btn btn-orange btn-block">精准搜索</button>
            </div>
          </form>
            <div class="clearfix"></div>
        </div>
        <div class="clearfix"></div>
      </div>
  </div>
</div>
<div class="wireframe bg-gray" >
  <div class="container text-right toppath">
     <?php echo W('Cate/favoritesget');?>
  </div>
</div>

            

<script type="text/javascript">
	function tourl(id){
		window.location.href="/Home/Index/show/id/"+id;
	}
</script>
<div class="container">
	<ol class="breadcrumb" style="margin-top:1.428rem;margin-bottom: 1.428rem; ">
		<li><a href="<?php echo U('Index/index');?>">首页</a></li>
		<li><a href="<?php echo U('index/index',array('cl'=>$data['goodsclass'] ));?>"><?php echo ($data["goodsclass"]); ?></a></li>
		<li><?php echo ($data["goodsname"]); ?></li>
	</ol>
</div>
<div class="main container bg-white">
	<br>
	<div class="col-md-4 showimg">
		<img src="<?php echo ($data["goodsimg"]); ?>" alt="<?php echo ($data["goodsname"]); ?>"  class="img-responsive">
	</div>
	<div class="col-md-8">
		<div class="page-header ">
			<h3 class="text-muted">
				<?php echo ($data["goodsname"]); ?>
			</h3>
			<div class="text-muted">
				<div class="col-xs-6 text-success" style="font-size: 1.25rem;"><span class="glyphicon glyphicon-time" aria-hidden="true"></span> 开始：<?php echo ($data["goodsstar"]); ?></div>
				<div class="col-xs-6 text-right text-danger" style="font-size: 1.25rem;"><span class="glyphicon glyphicon-time" aria-hidden="true"></span> 结束：<?php echo ($data["goodsend"]); ?></div>
				<div class="clearfix"></div>
			</div>
		</div>
		<div class="text-muted">
			<div>
				<div class="pull-left">商品类型：<?php echo ($data["goodsclass"]); ?></div>
				<div class="pull-right">平台类型：<?php echo ($data["goodsshopclass"]); ?></div>
				<div class="clearfix"></div>
			</div>
		</div>
		<div class="ticked">
			<div class="col-md-8 col-md-offset-2 col-sm-12 col-xs-12">
				<div class="col-sm-6 col-xs-12">
					<a class="btn btn-danger btn-lg btn-block" href="<?php echo ($data['goodsticketshare']); ?>" target="_blank">先领券 <br><?php echo ($data["goodsticket"]); ?></a>
				</div>
				<div class="col-sm-6 col-xs-12">
					<a class="btn btn-warning btn-lg btn-block" href="<?php echo ($data['goodslink']); ?>" target="_blank"> 去 <?php echo ($data["goodsshopclass"]); ?> 店铺<br>优惠购买</a>
				</div>
				<div class="clearfix"></div>
			</div>
			<div class="clearfix"></div>
			<div class="text-muted text-center" style="margin-top: 3.571rem;">
				<div class="page-header"><h5>如果您使用微信,在出现长网址提示时,可点击右上角 三个点 ,选择 "其他浏览器" 打开</h5></div>
				温馨提醒： 先领券，再下单，请注意 <span class="text-danger">优惠券有效期</span>。
			</div>
		</div>
	</div>
	<div class="clearfix"></div>
	<div class="col-md-6 col-md-offset-3 toIndex">
		<a href="<?php echo U('Index/index');?>" class="btn btn-info btn-block btn-lg">猫券网 天天优惠关 查看 >></a>
		<a href="<?php echo U('Index/rush');?>" class="btn btn-danger btn-block btn-lg">猫券网 淘抢购 立即去抢 >></a>
		<a href="<?php echo U('Index/group');?>" class="btn btn-success btn-block btn-lg">猫券网 特惠优品  9.9元包邮 20元封顶等  >></a>
		<a href="" class="btn btn-block btn-lg"><!-- JiaThis Button BEGIN -->
<div class="jiathis_style_32x32 pull-right" >
	<a class="jiathis_button_weixin"></a>
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_fav"></a>
	<a class="jiathis_button_cqq"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END --></a>
	</div>
	<div class="clearfix"></div>
	<div class="col-md-12">
		<h4 class="page-header"> <strong>同类商品推荐</strong></h4>
		<div class="row">
			<div class="shopinfo">
				<?php if(is_array($goods)): foreach($goods as $key=>$vo): ?><div class="col-xs-6 col-md-4 col-lg-3 ">
						<div class="thumbnail">
							<div class="thisimg">
								<div class="imgtitle text-center">
									<?php echo ($vo['goodsticket']); ?>
								</div>
								<img src="<?php echo ($vo["goodsimg"]); ?>" alt="<?php echo ($vo["goodsname"]); ?>"  onclick="tourl(<?php echo ($vo['id']); ?>)" class="getImgWidth">
							</div>
							<div class="caption">
								<p class="text-warning" style="font-size: 1.12rem;"  onclick="tourl(<?php echo ($vo['id']); ?>)"> <?php echo (mb_substr($vo["goodsname"],0,28,'utf-8')); ?></p>
								<div class="row text-muted ">
									<div class="col-xs-6"><span class="glyphicon glyphicon-time" aria-hidden="true"></span> <?php echo ($vo["goodsend"]); ?></div>
									<div class="col-xs-6 text-right">月销量：<span class="text-muted" ><?php echo ($vo["goodsmoonsum"]); ?></span></div>
									<div class="clearfix"></div>
								</div>
								<div class="price-title">
									<div class="pr-info">
										价格： <span class="text-danger" style="font-weight: bold; font-size: 1.142rem;">￥<?php echo ($vo["goodsprice"]); ?></span>
									</div>
									<div class="pr-info text-right">
										<a class="btn btn-danger btn-xs" href="<?php echo ($vo['goodsticketshare']); ?>" target="_blank">先领券</a> 
										<a class="btn btn-warning btn-xs" href="<?php echo ($vo['goodslink']); ?>" target="_blank">再购买</a>
									</div>
								</div>
							</div>
						</div>
					</div><?php endforeach; endif; ?>
				<div class="clearfix"></div>

			</div>

		</div>
	</div>
</div>

              <footer class="container-fluid">
  	<div class="footer row">
  		<div class="footinfo ">
      <div class="col-md-10 col-md-offset-1">
        <div class="col-md-4">版权所有 Copyright ? 2017 猫券网  <br>
                浙ICP备13027130号-9  &nbsp; &nbsp;&nbsp;站长邮箱：dnnw@qq.com <br>
                技术支持： <a href="http://www.isdruid.com" target="_blank">火星猫网络</a> &nbsp; &nbsp;&nbsp;
                <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1261439457'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s4.cnzz.com/z_stat.php%3Fid%3D1261439457%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script></div>
        <div class="col-md-4 col-xs-6 text-center"> <a href="/Public/images/weixin.png" target="_blank"><img src="/Public/images/weixin.png"></a><br>加微信联系</div>
        <div class="col-md-4 col-xs-6 text-center"> <a href="/Public/images/url.png" target="_blank"><img src="/Public/images/url.png"></a><br>手机访问本站</div>
  			<div class="clearfix"></div>
        </div>
        <div class="clearfix"></div>
  		</div>
  	</div>
  </footer>
            </body>
        </html>